Skip to content

fix: add comments to exported functions and fix linting issues#5

Merged
mario-gc merged 2 commits intodevelopfrom
feature/fix-linting-issues
Apr 2, 2026
Merged

fix: add comments to exported functions and fix linting issues#5
mario-gc merged 2 commits intodevelopfrom
feature/fix-linting-issues

Conversation

@mario-gc
Copy link
Copy Markdown
Owner

@mario-gc mario-gc commented Apr 2, 2026

Linting Fixes

Resolves all golangci-lint warnings reported by v2.11.4.

Changes

  • Added comments to all 50 exported functions missing documentation
  • Fixed 3 staticcheck QF1012 issues in cli/prompt.go
    • Used fmt.Fprintf instead of WriteString(fmt.Sprintf(...))
  • All packages now have proper documentation following Go conventions

Verification

  • All tests passing
  • Code follows AGENTS.md comment format: // FunctionName does X. Returns Y if Z.

Files Changed

  • agents/agents.go (7 functions)
  • config/config.go (8 functions)
  • cli/prompt.go (21 functions)
  • templates/templates.go (8 functions)

mario-gc added 2 commits April 2, 2026 16:47
- Added comments to all exported functions across all packages
- Fixed 3 staticcheck QF1012 issues in cli/prompt.go
- Used fmt.Fprintf instead of WriteString(fmt.Sprintf(...))
- All 50 revive exported comment warnings resolved
- All tests passing
- Added comments to all exported constants, variables, and types in models/models.go
- Added comment block for UI choice constants in cli/prompt.go
- Fixed 3 remaining QF1012 staticcheck issues in cli/prompt.go
- All 16 golangci-lint issues resolved (13 revive + 3 staticcheck)
@mario-gc mario-gc merged commit 5fa850a into develop Apr 2, 2026
6 checks passed
@mario-gc mario-gc deleted the feature/fix-linting-issues branch April 2, 2026 17:06
@mario-gc mario-gc mentioned this pull request Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant